﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Data.EntityClient;
using System.ComponentModel;
using System.Web.Mvc;

namespace TrucksDir.Data
{
    public partial class item : EntityObject
    {
        public void CheckForRadios(ModelStateDictionary modelState)
        {
            if (type == null)
                modelState.AddModelError("type", "Choose a type");
        }        
    }
}
